'use strict';

const Controller = require('egg').Controller;

class GetCartController extends Controller {
  async index() {
    const { ctx } = this;
    var data = await ctx.service.user.getCart(ctx.query)
    ctx.body ={
      code:200,
      res:data,
      msg:'获取购物车信息'
    }
  }
}

module.exports = GetCartController;